<!DOCTYPE html>
<html>
<head>
<title>说明文档.md</title>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">

<style>
/* https://github.com/microsoft/vscode/blob/master/extensions/markdown-language-features/media/markdown.css */
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

body {
	font-family: var(--vscode-markdown-font-family, -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "Ubuntu", "Droid Sans", sans-serif);
	font-size: var(--vscode-markdown-font-size, 14px);
	padding: 0 26px;
	line-height: var(--vscode-markdown-line-height, 22px);
	word-wrap: break-word;
}

#code-csp-warning {
	position: fixed;
	top: 0;
	right: 0;
	color: white;
	margin: 16px;
	text-align: center;
	font-size: 12px;
	font-family: sans-serif;
	background-color:#444444;
	cursor: pointer;
	padding: 6px;
	box-shadow: 1px 1px 1px rgba(0,0,0,.25);
}

#code-csp-warning:hover {
	text-decoration: none;
	background-color:#007acc;
	box-shadow: 2px 2px 2px rgba(0,0,0,.25);
}

body.scrollBeyondLastLine {
	margin-bottom: calc(100vh - 22px);
}

body.showEditorSelection .code-line {
	position: relative;
}

body.showEditorSelection .code-active-line:before,
body.showEditorSelection .code-line:hover:before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: -12px;
	height: 100%;
}

body.showEditorSelection li.code-active-line:before,
body.showEditorSelection li.code-line:hover:before {
	left: -30px;
}

.vscode-light.showEditorSelection .code-active-line:before {
	border-left: 3px solid rgba(0, 0, 0, 0.15);
}

.vscode-light.showEditorSelection .code-line:hover:before {
	border-left: 3px solid rgba(0, 0, 0, 0.40);
}

.vscode-light.showEditorSelection .code-line .code-line:hover:before {
	border-left: none;
}

.vscode-dark.showEditorSelection .code-active-line:before {
	border-left: 3px solid rgba(255, 255, 255, 0.4);
}

.vscode-dark.showEditorSelection .code-line:hover:before {
	border-left: 3px solid rgba(255, 255, 255, 0.60);
}

.vscode-dark.showEditorSelection .code-line .code-line:hover:before {
	border-left: none;
}

.vscode-high-contrast.showEditorSelection .code-active-line:before {
	border-left: 3px solid rgba(255, 160, 0, 0.7);
}

.vscode-high-contrast.showEditorSelection .code-line:hover:before {
	border-left: 3px solid rgba(255, 160, 0, 1);
}

.vscode-high-contrast.showEditorSelection .code-line .code-line:hover:before {
	border-left: none;
}

img {
	max-width: 100%;
	max-height: 100%;
}

a {
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a:focus,
input:focus,
select:focus,
textarea:focus {
	outline: 1px solid -webkit-focus-ring-color;
	outline-offset: -1px;
}

hr {
	border: 0;
	height: 2px;
	border-bottom: 2px solid;
}

h1 {
	padding-bottom: 0.3em;
	line-height: 1.2;
	border-bottom-width: 1px;
	border-bottom-style: solid;
}

h1, h2, h3 {
	font-weight: normal;
}

table {
	border-collapse: collapse;
}

table > thead > tr > th {
	text-align: left;
	border-bottom: 1px solid;
}

table > thead > tr > th,
table > thead > tr > td,
table > tbody > tr > th,
table > tbody > tr > td {
	padding: 5px 10px;
}

table > tbody > tr + tr > td {
	border-top: 1px solid;
}

blockquote {
	margin: 0 7px 0 5px;
	padding: 0 16px 0 10px;
	border-left-width: 5px;
	border-left-style: solid;
}

code {
	font-family: Menlo, Monaco, Consolas, "Droid Sans Mono", "Courier New", monospace, "Droid Sans Fallback";
	font-size: 1em;
	line-height: 1.357em;
}

body.wordWrap pre {
	white-space: pre-wrap;
}

pre:not(.hljs),
pre.hljs code > div {
	padding: 16px;
	border-radius: 3px;
	overflow: auto;
}

pre code {
	color: var(--vscode-editor-foreground);
	tab-size: 4;
}

/** Theming */

.vscode-light pre {
	background-color: rgba(220, 220, 220, 0.4);
}

.vscode-dark pre {
	background-color: rgba(10, 10, 10, 0.4);
}

.vscode-high-contrast pre {
	background-color: rgb(0, 0, 0);
}

.vscode-high-contrast h1 {
	border-color: rgb(0, 0, 0);
}

.vscode-light table > thead > tr > th {
	border-color: rgba(0, 0, 0, 0.69);
}

.vscode-dark table > thead > tr > th {
	border-color: rgba(255, 255, 255, 0.69);
}

.vscode-light h1,
.vscode-light hr,
.vscode-light table > tbody > tr + tr > td {
	border-color: rgba(0, 0, 0, 0.18);
}

.vscode-dark h1,
.vscode-dark hr,
.vscode-dark table > tbody > tr + tr > td {
	border-color: rgba(255, 255, 255, 0.18);
}

</style>

<style>
/* Tomorrow Theme */
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
/* Original theme - https://github.com/chriskempson/tomorrow-theme */

/* Tomorrow Comment */
.hljs-comment,
.hljs-quote {
	color: #8e908c;
}

/* Tomorrow Red */
.hljs-variable,
.hljs-template-variable,
.hljs-tag,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class,
.hljs-regexp,
.hljs-deletion {
	color: #c82829;
}

/* Tomorrow Orange */
.hljs-number,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params,
.hljs-meta,
.hljs-link {
	color: #f5871f;
}

/* Tomorrow Yellow */
.hljs-attribute {
	color: #eab700;
}

/* Tomorrow Green */
.hljs-string,
.hljs-symbol,
.hljs-bullet,
.hljs-addition {
	color: #718c00;
}

/* Tomorrow Blue */
.hljs-title,
.hljs-section {
	color: #4271ae;
}

/* Tomorrow Purple */
.hljs-keyword,
.hljs-selector-tag {
	color: #8959a8;
}

.hljs {
	display: block;
	overflow-x: auto;
	color: #4d4d4c;
	padding: 0.5em;
}

.hljs-emphasis {
	font-style: italic;
}

.hljs-strong {
	font-weight: bold;
}
</style>

<style>
/*
 * Markdown PDF CSS
 */

 body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "Ubuntu", "Droid Sans", sans-serif, "Meiryo";
	padding: 0 12px;
}

pre {
	background-color: #f8f8f8;
	border: 1px solid #cccccc;
	border-radius: 3px;
	overflow-x: auto;
	white-space: pre-wrap;
	overflow-wrap: break-word;
}

pre:not(.hljs) {
	padding: 23px;
	line-height: 19px;
}

blockquote {
	background: rgba(127, 127, 127, 0.1);
	border-color: rgba(0, 122, 204, 0.5);
}

.emoji {
	height: 1.4em;
}

code {
	font-size: 14px;
	line-height: 19px;
}

/* for inline code */
:not(pre):not(.hljs) > code {
	color: #C9AE75; /* Change the old color so it seems less like an error */
	font-size: inherit;
}

/* Page Break : use <div class="page"/> to insert page break
-------------------------------------------------------- */
.page {
	page-break-after: always;
}

</style>

<script src="https://unpkg.com/mermaid/dist/mermaid.min.js"></script>
</head>
<body>
  <script>
    mermaid.initialize({
      startOnLoad: true,
      theme: document.body.classList.contains('vscode-dark') || document.body.classList.contains('vscode-high-contrast')
          ? 'dark'
          : 'default'
    });
  </script>
<h2 id="%E5%A3%B0%E6%98%8E%E6%B2%A1%E6%9C%89%E4%BB%BB%E4%BD%95%E6%89%93%E5%B9%BF%E5%91%8A">声明没有任何打广告</h2>
<ul>
<li>自行购买开发板</li>
<li>up主这边用的是度云的开发板</li>
<li>其他开发板也是可以使用度云的资料的 不影响的</li>
<li>编译、 烧录、 验证 最好是看视频教程</li>
<li>教程：<a href="https://www.bilibili.com/video/BV1xfnkzvEEN">https://www.bilibili.com/video/BV1xfnkzvEEN</a></li>
</ul>
<h3 id="1-%E8%B5%84%E6%96%99%E6%96%87%E6%A1%A3">1. 资料文档：</h3>
<ul>
<li>https://www.yuque.com/doiot/data/ggudbugsd3vf0cbc</li>
</ul>
<h3 id="2-%E5%89%8D%E7%BD%AE%E7%8E%AF%E5%A2%83%E5%AE%89%E8%A3%85">2. 前置环境安装</h3>
<ul>
<li>python 版本大于3.7即可</li>
<li>https://www.python.org/downloads/</li>
<li>安装 scons <code>pip install scons</code>
<ul>
<li>安装不上则添加镜像源</li>
<li><code>pip install scons -i https://pypi.tuna.tsinghua.edu.cn/simple/</code></li>
<li><code>pip install scons -i https://mirrors.aliyun.com/pypi/simple/</code></li>
</ul>
</li>
</ul>
<h3 id="3-%E4%B8%8B%E8%BD%BD%E7%83%A7%E5%BD%95%E5%B7%A5%E5%85%B7-%E5%92%8C-window10%E9%A9%B1%E5%8A%A8">3. 下载烧录工具 和 window10驱动</h3>
<ul>
<li><a href="https://www.yuque.com/doiot/data/pvr2ugczronsric1">网址：https://www.yuque.com/doiot/data/pvr2ugczronsric1</a></li>
<li>ML307 OpenCPU教程<img src="file:///e:/ML307C/课件/01搭建环境烧录测试/image-1.png" alt="alt text"></li>
<li><img src="file:///e:/ML307C/课件/01搭建环境烧录测试/image.png" alt="alt text"></li>
<li>下载csdk + Demo 代码包
<ul>
<li><img src="file:///e:/ML307C/课件/01搭建环境烧录测试/image-2.png" alt="alt text"></li>
</ul>
</li>
</ul>
<h3 id="4-%E9%AA%8C%E8%AF%81%E7%8E%AF%E5%A2%83%E4%B8%94%E7%BC%96%E8%AF%91">4. 验证环境且编译</h3>
<ul>
<li>进入到 OpenCPU目录</li>
<li>打开cmd终端
<ul>
<li><code>python --version</code></li>
<li><code>scons</code></li>
<li><img src="file:///e:/ML307C/课件/01搭建环境烧录测试/image-3.png" alt="alt text"></li>
</ul>
</li>
<li>重新编译案例 uart 串口
<ul>
<li><code>scons demo=uart</code> <img src="file:///e:/ML307C/课件/01搭建环境烧录测试/image-4.png" alt="alt text"></li>
</ul>
</li>
</ul>
<h3 id="5-%E8%BF%9B%E8%A1%8C%E7%83%A7%E5%BD%95">5. 进行烧录</h3>
<ul>
<li>找到OpenCpu目录下的 out目录 <img src="file:///e:/ML307C/课件/01搭建环境烧录测试/image-5.png" alt="alt text"></li>
<li>打开烧录工具 <code>aboot-tools-2022.03.01-win-x64-doiot</code>
<ul>
<li><code>aboot.exe</code></li>
</ul>
</li>
<li>点击查找按钮 选中out/image目录下面的压缩包 .zip   <img src="file:///e:/ML307C/课件/01搭建环境烧录测试/image-6.png" alt="alt text"></li>
<li>点击开始按钮 start按钮 (面向开发板在下面) 插入usb 线Type-c 按住boot键 然后按rst重启即可进行烧录 <img src="file:///e:/ML307C/课件/01搭建环境烧录测试/image-7.png" alt="alt text"></li>
<li>出现有绿色S就表示烧录成功</li>
</ul>
<h3 id="6-%E9%AA%8C%E8%AF%81-%E4%BD%BF%E7%94%A8%E9%9D%A2%E5%90%91%E5%BC%80%E5%8F%91%E6%9D%BF%E5%9C%A8%E4%B8%8A%E9%9D%A2-uart-usb-type-c%E7%BA%BF%E6%8F%92%E5%85%A5-%E6%89%93%E5%BC%80%E4%B8%B2%E5%8F%A3-%E6%B3%A8%E6%84%8F%E9%9C%80%E8%A6%81%E6%8C%89%E4%B8%80%E4%B8%8B-rst%E6%8C%89%E9%92%AE%E6%89%8D%E4%BC%9A%E9%87%8D%E6%96%B0%E5%90%AF%E5%8A%A8%E7%A8%8B%E5%BA%8F">6. 验证 使用(面向开发板在上面) uart usb Type-c线插入 打开串口 注意需要按一下 rst按钮才会重新启动程序</h3>
<ul>
<li><img src="file:///e:/ML307C/课件/01搭建环境烧录测试/image-8.png" alt="alt text"></li>
</ul>

</body>
</html>
